home *** CD-ROM | disk | FTP | other *** search
-
- ZIP-PHONE
- Version 1.2
- Copyright (c) 1986, AT&T
- Not for Resale
-
-
- ZIPPHONE was created to provide cross-references between
- ZIPCODES and NPA-NXXs. It is not meant to fufill all possible uses
- of the information. However, ZIPPHONE can create data files that
- may be used as input to other programs that would be able to address
- a specific need.
-
- Because of the amount of information, the ZIPPHONE hase been split
- onto two disks that cover the continental United States
- (48 states and the District of Columbia):
-
- Disk 1 contains: Eastern and Central States
- ME,VT,NH,MA,NY,PA,NJ,RI,CT,LA,
- WV,VA,NC,SC,GA,FL,AL,MI,WI,IA
- AR,MO,IL,TN,KY,OH,IN,MI,MN,DC,
- DE,MD
-
- Disk 2 contains: Western and some Central States
- WA,OR,CA,NV,ID,MT,WY,CO,NM,TX
- AZ,ND,SD,NE,KS,OK
-
-
- To execute ZIPPHONE from the A: floppy disk drive, type the following:
- A: <cr>
- ZIPPHONE <cr>
- Then select the item desired from the displayed menu.
-
-
- For your convenience, ZIPPHONE is not copy-protected. You may
- make backup copies or copy it onto your hard-disk.
-
-
- ZIPPHONE is composed of the following files:
- ZIPPHONE.EXE
- ZIPSTATE.DAT
- NPAxxx.ZIP (where xxx is an NPA)
-
- -----------------------> For Programmers <------------------------
-
- The ZIPPHONE data files that contain the NPA-NXX to Zipcode
- translations (npaxxx.zip) are in Binary Coded Decimal (BCD).
- Consequently, other programs cannot directly access the information
- contained therein, unless the program uses a programming language
- such as C Language which provides bit manipulation facilities.
- The BCD format produces a 70% disk space reduction over the
- ZIPPHONE format in Option 10, and the format also decreases execution
- time by reducing disk I/O.
-
- The information in the NPA BCD file is sorted by NXX and ZIPCODE.
- The general format is:
- NXX
- First digit of the valid zipcodes for the NPA
- Number of Zipcodes for the NXX
- List of the Last 4-digits of the Zipcodes for the NXX
-
- Specifically, for each NXX in the NPA BCD file, the format is:
- bits 4-7 of byte 1 = 1st digit of NXX
- bits 0-3 of byte 1 = 2nd digit of NXX
- bits 4-7 of byte 2 = 3rd digit of NXX
- bits 0-3 of byte 2 = 1st digit of Zipcodes for this NPA
- bits 4-7 of byte 3 = tens digit of no. of Zipcodes for this NXX
- bits 0-3 of byte 3 = ones digit of no. of Zipcodes for this NXX
-
- For each ZIPCODE for the NXX, the format is:
- bits 4-7 of byte x = 2nd digit of a Zipcode for this NXX
- bits 0-3 of byte x = 3rd digit of a Zipcode for this NXX
- bits 4-7 of byte x+1 = 4th digit of a Zipcode for this NXX
- bits 0-3 of byte x+1 = 5th digit of a Zipcode for this NXX
- where 'x' starts at byte 4 is increased by 2 for each Zipcode
- for the NXX.
-